<template>
	<view class="container">
		<view class="keshi-D-head">
			<view class="keshi-D-headTitle">{{pagecon.name}}</view>
			<view class="keshi-D-headbg">
				<image src="../../static/ic_logo3.png" mode="widthFix"></image>
			</view>
		</view>
		<view class="keshi-D-con">
			<view class="keshi-D-consub" v-html="content"></view>
		</view>
	</view>
</template>

<script>
	import app from '../../App.vue'
	export default({
		data(){
			return{
				id:'',
				pagecon:'',
				content:''
			}
		},
		onLoad(options) {
			let that = this
			that.id = options.id
		},
		onShow() {
			this.getkeshidetail()
		},
		methods:{
			getkeshidetail(){
				let that = this,
				data={
					department_id:that.id
				}
				app.post('api/department/getDepartmentInfo',data).then(res=>{
					console.log(res)
					if(res.code == 1&& res.data !=''){
						that.pagecon = res.data
						that.content = res.data.content.replace(/\<img/g, '<img style="max-width:100%!important;height:auto;display:block;margin:10px 0;"')
					}
				})
			}
		}
	})
</script>

<style>
	@import url("../../common/keshidetail.css");
</style>
